package com.yiyuan.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yiyuan.user.dao.DictDao;
import com.yiyuan.user.model.Dict;
import com.yiyuan.user.service.DictService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class DictServiceImpl extends ServiceImpl<DictDao,Dict> implements DictService {

    @Autowired
    private DictDao dictDao;
    @Override
    public List<Dict> findDiceByParentId(Integer parentId) {

        return dictDao.findDiceByParentId(parentId);

    }
}
